<div class="container">
    <div class="logo" style="clear: both"><a href="./index.html">后台基础框架</a></div>
    <ul class="layui-nav right" lay-filter="" >
        <li class="layui-nav-item">
            <a href="javascript:;">{{$nickname}}</a>
            <dl class="layui-nav-child"> <!-- 二级菜单 -->
                <dd><a href="/Admin/Login/login">退出</a></dd>
            </dl>
        </li>
        <li class="layui-nav-item"><a href="/">前台首页</a></li>
    </ul>
</div>
<script>
    layui.use('element', function(){
        var element = layui.element;

        //…
    });
</script>